From f6833dff97820d32fcd015d4c86cf99e52d19b43 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Thu, 2 Jul 2009 11:34:48 +0100 Subject: [PATCH] xend: fix an undefined name error: mac may be referenced before definition. Signed-off-by: Zhigang Wang --- tools/python/xen/xend/XendDomainInfo.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index bb7bd72c1f..40b81cf1ac 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -1230,6 +1230,7 @@ class XendDomainInfo: if rm_cfg: if deviceClass == 'vif': if self.domid is not None: + mac = '' for dev_num, dev_info in sxprs: dev_num = int(dev_num) if dev_num == dev: -- 2.30.2